package aimis.dto.form;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class DepartmentForm {
    @NotNull(groups = {DeleteDepartment.class, EditDepartment.class})
    private Long id;
    @NotBlank(groups = {AddDepartment.class, EditDepartment.class})
    private String name;
    @NotNull(groups = {AddDepartment.class, EditDepartment.class})
    private Integer sort;
    private String address;
    private String responsiblePerson;
    private Long parentId;
    private String description;

    public interface DeleteDepartment {
    }

    public interface AddDepartment {
    }

    public interface EditDepartment {

    }
}
